﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AusProject.OrderDataControls;

namespace AusProject
{
    public class SupplierOrderFormInfo
    {
        private int id;

        public int Id
        {
            get { return id; }
        }

        public string Title { get; set; }

        public int Width { get; set; }

        public int Height { get; set; }

        public string BackgroundImagePath { get; set; }

        public List<DataBoxInfo> ListOfDataBox { get; set; }

        public SupplierOrderFormInfo(int id, string title, int width, int height, string backgroundImagePath, List<DataBoxInfo> listOfDataBox)
        {
            this.id = id;
            Title = title;
            Width = width;
            Height = height;
            BackgroundImagePath = backgroundImagePath;
            ListOfDataBox = listOfDataBox;
        }

        public SupplierOrderFormInfo(string title, int width, int height, string backgroundImagePath, List<DataBoxInfo> listOfDataBox)
        {
            this.id = -1;
            Title = title;
            Width = width;
            Height = height;
            BackgroundImagePath = backgroundImagePath;
            ListOfDataBox = listOfDataBox;
        }

        public override string ToString()
        {
            return this.Title + "  <#" + this.Id + ">";
        }
    }
}
